<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
    <script>
        function sendPost() {
            $.ajax({
            type:'post',
            url:'doRequest',
            success:function(body) {
                console.log(body);
            }
        });
        }

        function sendPut() {
            $.ajax({
            type:'put',
            url:'doRequest',
            success:function(body) {
                console.log(body);
            }
        });
        }

        function sendDelete() {
            $.ajax({
            type:'delete',
            url:'doRequest',
            success:function(body) {
                console.log(body);
            }
        });
        }

    </script>

</head>
<body>
    
    <input type="button" value="sendPost" onclick="sendPost();">
    <input type="button" value="sendPut" onclick="sendPut();">
    <input type="button" value="sendDelete" onclick="sendDelete();">

</body>
</html>